import request from '@/utils/request'
// 获取用户列表
export const UserList = params => {
  return request({
    url: '/user/list',
    params
  })
}
//新增用户信息
export const UserAdd = data => {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}
//删除用户信息
export const UserRemove = data => {
  return request({
    url: '/user/remove/',
    method: 'post',
    data
  })
}
//编辑用户信息
export const UserEdit = data => {
  return request({
    url: '/user/edit/' + data.id,
    method: 'post',
    data
  })
}
//状态
export const UserStatus = data => {
  return request({
    url: '/user/status',
    method: 'post',
    data
  })
}
//学科列表
export const SubjectList = params => {
  return request({
    url: '/subject/list',
    params
  })
}
//新增学科列表
export const SubjectAdd = data => {
  return request({
    url: '/subject/add',
    method: 'post',
    data
  })
}
//删除学科
export const SubjectRemove = data => {
  return request({
    url: '/subject/remove',
    method: 'post',
    data
  })
}
//编辑学科
export const SubjectEdit = data => {
  return request({
    url: '/subject/edit/' + data.id,
    method: 'post',
    data
  })
}
//学科状态
export const SubjectStatus = data => {
  return request({
    url: '/subject/status',
    method: 'post',
    data
  })
}